package br.academia.controller;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@SuppressWarnings("serial")
@Component("public")
@Scope("session")
public class PublicController extends AbstractController{
	public static final String PAGINA_INICIAL = "/index.jsf";
	
	public PublicController(){
		reset();
	}
	
	public void reset(){
		
	}
	
	public boolean isUserLoggedIn(){
		if(getCurrentRequest().getSession().getAttribute("usuarioLogado") == null){
			getCurrentSession().setAttribute("errodesconectado", 1);
			return true;
		}
		
		return false;
	}

}
